<?php
/**
 * created by.
 * User: EDZ
 * Date: 2020/9/29
 * TIME: 15:27
 */

namespace app\admin_libaray\user\model;

use think\Model;

class UserModel extends Model{

    public $name = 'user';

    /**
     * 获取用户信息
     *
     * @param $where
     * @return array|\PDOStatement|string|Model
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function getUserInfo($where){
        return self::where($where)->findOrFail();
    }
}